var GJ_lang = {
    zh:{
    	account:'账号',
    	email:'邮箱',
    	password:'密码',
        code:'验证码',
    	emailCode:'邮箱验证码',
    	accountTips:'长度为4-32个字符，支持数字、字母、下划线，字母开头，字母或数字结尾',
    	passwordTips:'长度为8-16个字符，区分大小写，至少包含两种类型',
    	kapkeyTips:'请输入邮箱收到的验证码',
    	emailTips:'用于找回密码，提高账号安全等级',
    	textInpic:'请输入图中文字',
    	refreshCode:'点击可刷新验证码',
    	tips:'提示',
    	sendEmailTips_1:'验证码已发往邮箱',
    	sendEmailTips_2:'请前往查看并将验证码填写在输入框',
    	sendEmailTips_3:'（30分钟内有效）',
    	emailRegTips:'此邮箱已被注册',
    	accountRegTips:'该账号已被注册',
    	login:'登录',
    	networkError:'网络错误',
    	accountRequired:'请填写账号',
    	accountRangelength:'账号长度不对，需输入4-32位',
    	accountUserName:'账号格式不正确',
    	passwordRequired:'密码不能为空',
    	passwordAccountChar:'密码仅支持数字、字母和符号',
    	passwordRangelength:'密码应为8-16个字符，区分大小写',
    	passwordAccountTowType:'需至少包含数字、字母和符号中的两种类型',
    	passwordAccountNoEq:'密码不能与账号相同',
    	repeatPasswordequalTo:'两次输入密码不一致',
    	kapkeyrequired:'请填写验证码',
    	kapkeyrangelength:'验证码长度错误',
    	nicknamerequired:'昵称不能为空',
    	nicknameLen:'昵称长度为2-32字符',
    	nicknamenoEmpty:'昵称不能包含空格',
    	nickname:'仅支持汉字、英文、数字、"_"、"."',
    	nicknameremote:'该社区昵称不存在或已有flyme账号',
    	emailpRequired:'邮箱不能为空',
    	emailmaxlength:'邮箱长度不能超过32',
    	emailpEmail:'邮箱格式不正确',
    	emailhasreg:'此邮箱已经存在',
    	phonepRequired:'请输入手机号码',
    	phoneppDigits11:'手机号码格式错误',
    	phonezdiyRemote:'此手机号码已注册',
    	phonelength:'手机号码应为11位数字',
    	moneyrequired:'金额不能为空',
    	moneynumber:'金额应为数字',
    	formaterror:'格式不正确',
    	answerrequired:'请填写密保答案',
    	questionnickname:'仅支持汉字、英文、数字、"_"',
    	questionanswerLen:'答案应为1-32个字符',
    	questionrequired:'请填写密保问题',
    	cardIdrequired:'卡号不能为空',
    	cardIdrangelength:'移动充值卡号长度应为17位',
    	cardPwdrangelength:'移动充值卡密码长度应为18位',
    	serverError:'服务器出错，请稍后重试',
    	send:'已发送',
    	uploadpicerror:'上传图片服务器错误，请尝试使用其他浏览器!',
    	moneyrange:'金额区间0.01-100',
        getCode:'获取验证码',
        nicknameOK:'昵称已修改成功',
        nicknameOKTips:'部分位置显示可能会延迟',
        nicknameLen2:'只能输入2-32位中英文、数字、点号和下划线',
        nicknamehasreg:'此昵称已存在',
        nicknamemod:'修改昵称',
        accountmod:'修改帐户名',
        passwordmodtips:'修改密码成功，请用新密码重新登录',
        passwordunequalTo:'密码不能和用户名相同',
        emailmod_1:'修改邮箱（已验证第一步）',
        emailmod_2:'修改邮箱（已验证第二步）',
        emailmodpassword:'修改邮件（未验证-先验证密码）',
        emailmodunverify:'修改邮件（未验证）',
        phonemodpassword:'修改手机号码（验证密码）',
        phonehasbind:'此号码已被绑定',
        bindphone:'绑定手机号码',
        phonemodtype:'修改手机号码（选择类型）',
        setques_a:'设置密保（第一次）先验证',
        setques_b:'设置密保（第一次）',
        modquesverify:'修改密保（先验证）',
        modques_a:'修改密保（修改）',
        editinp_a:'当前信息尚未保存',
        editinp_b:'修改其他项目将导致当前正在编辑的信息丢失',
        isgoon:'是否继续？',
        communityAccount:'社区账号',
        communityAccountreq:'请输入你的社区昵称',
        communityAccountpassword:'请输入你的社区密码',
        safeLevelTip:'设置密码+20，验证邮箱+20，绑定手机号+30，设置密保问题+30，账号安全等着你拿100满分哦',
        newnickNametext:'支持中英文、数字和下划线，3个月内只能改一次',
        emailzdiyRemote:'您输入的不是预设邮箱',
        resetPassword:'设置新密码',
        repeatPassword:'重复新密码',
        sure:'确定',
        cancel:'取消',
        send: '已发送'
    },
    en_US:{
    	account:'account',
    	email:'Security email',
    	password:'password',
        code:'verification code',
    	emailCode:'Email verification code',
    	accountTips:'It has 4-32 characters and supports digits, letters, and underlines. It begins with a letter or a digit and ends with a digit',
    	passwordTips:'The password shall contain 8 to 16 digits including at least two types among letters, numbers and symbols',
    	kapkeyTips:'Please enter the verification code received in the email',
    	emailTips:'It is used to retrieve the password and can improve the account security level',
    	textInpic:'Please enter the text in the image',
    	refreshCode:'Click to refresh the verification code',
    	tips:'Tips',
    	sendEmailTips_1:'The verification code has been sent to the email ',
    	sendEmailTips_2:'Please check the verification code and fill it in the input box',
    	sendEmailTips_3:'（Valid within 30 minutes）',
    	emailRegTips:'The email address is already registered',
    	accountRegTips:'This account name has been registered',
    	login:'Login',
    	networkError:'Network error',
    	accountRequired:'The account number cannot be empty',
    	accountRangelength:'The length of the account name is incorrect. It contains 4-32 characters',
    	accountUserName:'The account name format is incorrect',
    	passwordRequired:'The password cannot be empty',
    	passwordAccountChar:'You password supports only numbers, letters and symbols',
    	passwordRangelength:'You password shall be 8-16 characters and case-sensitive',
    	passwordAccountTowType:'You password shall include at least any two of digits, letters or symbols',
    	passwordAccountNoEq:'The password cannot be the same as the user name',
    	repeatPasswordequalTo:'The two passwords you typed do not match',
    	kapkeyrequired:'Please fill in the verification code',
    	kapkeyrangelength:'Verification code length error',
    	nicknamerequired:'The nickname cannot be empty',
    	nicknameLen:'The nickname shall contain 2-32 characters',
    	nicknamenoEmpty:'The nickname cannot contain spaces',
    	nickname:'It supports only Chinese characters, English letters, and "_"',
    	nicknameremote:'This community nickname does not exist or the Flyme account is registered',
    	emailpRequired:'The email address cannot be empty',
    	emailmaxlength:'The email address cannot exceed 32 characters',
    	emailpEmail:'Email address format incorrect',
    	emailhasreg:'This email address is already in use',
    	phonepRequired:'Please enter the mobile number',
    	phoneppDigits11:'The mobile number format is invalid',
    	phonezdiyRemote:'The mobile number is registered',
    	phonelength:'The mobile number shall contain 11 digits',
    	moneyrequired:'The amount cannot be empty',
    	moneynumber:'The amount shall be a number',
    	formaterror:'Data format incorrect',
    	answerrequired:'Please fill out the secret answer',
    	questionnickname:'It supports only Chinese characters, English letters, and "_"',
    	questionanswerLen:'The answer shall contain 1-32 characters',
    	questionrequired:'Please fill out the security question',
    	cardIdrequired:'The card number cannot be empty',
    	cardIdrangelength:'The top-up card number shall contain 17 digits',
    	cardPwdrangelength:'The top-up card password shall contain 18 digits',
    	serverError:'Server error, please try again later',
    	sent:'Sent',
    	uploadpicerror:'An error occurs when images are uploaded to the server. Try using another browser!',
    	moneyrange:'The amount ranges from 0.01 to 100',
        getCode:'Get code',
         nicknameOK:'Nickname changed successfully',
        nicknameOKTips:'There may be a delay in displaying at certain positions',
        nicknameLen2:'You can enter only 2-32 characters, including Chinese characters, English letters, digits, dot marks, and underlines',
        nicknamehasreg:'This nickname is registered',
        nicknamemod:'Modify the nickname',
        accountmod:'Modify the account name',
        passwordmodtips:'Password successfully modified. Please log in to the system using the new password',
        passwordunequalTo:'The password cannot be the same as user name',
        emailmod_1:'Modify the email (first step verified)',
        emailmod_2:'Modify the email (second step verified)',
        emailmodpassword:'Modify the email (not verified - please verify the password first)',
        emailmodunverify:'Modify the email (not verified)',
        phonemodpassword:'Modify the mobile number (verify the password)',
        phonehasbind:'This mobile number is bound',
        bindphone:'Bind to the mobile number',
        phonemodtype:'Modify the mobile number (select the type)',
        setques_a:'Before setting the security questions (for the first time), please verify...',
        setques_b:'Before setting the security questions (for the first time), please verify...',
        modquesverify:'Modify the security questions (please verify ... first)',
        modques_a:'Modify the security questions (modify)',
        editinp_a:'The current information is not saved',
        editinp_b:'the current editing may be lost if you modify another item',
        isgoon:'Continue?',
        communityAccount:'Community account number',
        communityAccountreq:'Please enter your nickname in the community',
        communityAccountpassword:'Please enter your password in the community',
        safeLevelTip:'Setting the password +20 points; verifying the email +20 points; binding the mobile number +20 points; setting security questions +30 points. Hope you make perfect account security settings!',
        newnickNametext:'It supports Chinese characters, English letters, digits, and underlines, and can only be modified once every three months',
        emailzdiyRemote:'The entered email address is not the preset email address',
        resetPassword:'Set a new password',
        repeatPassword:'Repeat the new password',
        sure:'OK',
        cancel:'Cancel',
        send: 'Sent'
    }

};


(function(){
	function GJgetCookie(c_name) {
	    if (document.cookie.length > 0) {
	        var c_start = document.cookie.indexOf(c_name + "=");
	        if (c_start != -1) {
	            c_start = c_start + c_name.length + 1;
	            var c_end = document.cookie.indexOf(";", c_start);
	            if (c_end == -1) c_end = document.cookie.length;
	            return unescape(document.cookie.substring(c_start, c_end));
	        }
	    }
	}
	var key = GJgetCookie('lang') == undefined?'zh':GJgetCookie('lang');
	Glanguage = GJ_lang[key]==undefined?GJ_lang.zh:GJ_lang[key];
    
})();
